home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / file-roller.postrm < prev    next >
Encoding:
Text File  |  2007-04-09  |  1.8 KB  |  50 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installmenu
  4. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  5. # End automatically added section
  6. # Automatically added by dh_installmime
  7. if which update-mime >/dev/null 2>&1; then update-mime; fi
  8. # End automatically added section
  9. # Automatically added by dh_scrollkeeper
  10. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  11.     scrollkeeper-update -q
  12. fi
  13. # End automatically added section
  14. # Automatically added by dh_gconf
  15. if [ "$1" = purge ]; then
  16.     OLD_DIR=/etc/gconf/schemas
  17.     SCHEMA_FILES="file-roller.schemas "
  18.     if [ -d $OLD_DIR ]; then
  19.         for SCHEMA in $SCHEMA_FILES; do
  20.             rm -f $OLD_DIR/$SCHEMA
  21.         done
  22.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  23.     fi
  24. fi
  25. # End automatically added section
  26. # Automatically added by dh_desktop
  27. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  28.     update-desktop-database -q
  29. fi
  30. # End automatically added section
  31. # Automatically added by dh_iconcache
  32. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  33. if [ "$1" = "remove" ] && \
  34.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  35.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  36.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  37.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  38.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  39.         # it's not important enough
  40.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  41.     else
  42.         # if the icon theme directory has no subdirs, we can remove the cache
  43.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  44.     fi
  45. fi
  46. # End automatically added section
  47. # Automatically added by dh_installmime
  48. if which update-mime >/dev/null 2>&1; then update-mime; fi
  49. # End automatically added section
  50.